import { BasicColumn, FormSchema } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '姓名',
    dataIndex: '',
    width: 50,
  },
  {
    title: '学号',
    dataIndex: '',
    width: 50,
  },
  {
    title: '专业',
    dataIndex: '',
    width: 50,
  },
  {
    title: '年级',
    dataIndex: '',
    width: 50,
  },
  {
    title: '班级',
    dataIndex: '',
    width: 50,
  },
  {
    title: '类型',
    dataIndex: 'remark',
    width: 200,
  },
  {
    title: '行为名称',
    dataIndex: 'behaviorName',
    width: 180,
  },
  {
    title: '行为内容',
    dataIndex: 'behaviorContent',
    width: 300,
  },
  {
    title: '备注',
    dataIndex: '',
    width: 100,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: '',
    label: '姓名',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: '',
    label: '学号',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: '',
    label: '专业',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: '',
    label: '年级',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: '',
    label: '班级',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'remark',
    label: '行为类型',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'behaviorName',
    label: '行为名称',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'behaviorContent',
    label: '行为内容',
    required: false,
    component: 'Input',
    colProps: { span: 5 },
  },
];

export const addFormSchema: FormSchema[] = [
  {
    field: 'id',
    show: false,
  },
  {
    field: 'remark',
    label: '类型',
    required: true,
    component: 'Input',
  },
  {
    field: 'behaviorName',
    label: '行为名称',
    required: true,
    component: 'Input',
  },
  {
    field: 'behaviorContent',
    label: '行为内容',
    required: true,
    component: 'Input',
  },
  {
    field: '',
    label: '备注',
    required: false,
    component: 'Input',
  },
];
